package com.jsmtr.rms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

@Entity
@Table(name = "Base_Employee")
public class BaseEmployee {

    @Id
    @Column(nullable = false, length = 50)
    private String id; // id

    @Column(nullable = false, length = 10)
    private String ucode; // 员工号

    @Column(nullable = false, length = 10)
    private String uname; // 员工姓名

    @Column(nullable = false, length = 50)
    private String udeptname; // 所属部门

    @Column(nullable = false, length = 50)
    private String ujobname; // 所属岗位

    @Column(nullable = false, length = 11)
    private String utel; // 手机号码

    @Column(nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date intime; // 入司时间

    @Column(nullable = true, length = 4000)
    private String remark; // 个人简介

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUcode() {
        return ucode;
    }

    public void setUcode(String ucode) {
        this.ucode = ucode;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUdeptname() {
        return udeptname;
    }

    public void setUdeptname(String udeptname) {
        this.udeptname = udeptname;
    }

    public String getUjobname() {
        return ujobname;
    }

    public void setUjobname(String ujobname) {
        this.ujobname = ujobname;
    }

    public String getUtel() {
        return utel;
    }

    public void setUtel(String utel) {
        this.utel = utel;
    }

    public Date getIntime() {
        return intime;
    }

    public void setIntime(Date intime) {
        this.intime = intime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}